<?php

return new \Phalcon\Config(array(
    'database' => array(
        'adapter'     => 'Mysql',
        'host'        => '10.66.144.109',
        'username'    => 'root',
        'password'    => 'feima@123#',
        'dbname'      => 'feima',
        'charset'     => 'utf8',
    ),
    'application' => array(
        'controllersDir' => __DIR__ . '/../../app/controllers/',
        'modelsDir'      => __DIR__ . '/../../app/models/',
        'servicesDir'      => __DIR__ . '/../../app/services/',
        'viewsDir'       => __DIR__ . '/../../app/views/',
        'pluginsDir'     => __DIR__ . '/../../app/plugins/',
        'libraryDir'     => __DIR__ . '/../../app/library/',
        'cacheDir'       => __DIR__ . '/../../app/cache/',
        'entityDir'       => __DIR__ . '/../../app/entity/',
        'baseUri'        => '/',
    ),
    'redis' => array(
        'host'  =>  '10.66.172.42',
        'port'  =>  6379,
        'password' => '1e4dbf33-997c-4ab1-82d4-9cd66d91daca:Root2wsx',
    ),
    'redisExpire' => array(
        'user' => 86400,
        'validation' => 600,
        'sms' => 10800,
    ),
    'host' => array(
        'api_host' => 'http://115.159.18.187:8081',
        'page_host' => 'http://115.159.18.187:8083',
        'cloud_host' => 'http://115.159.18.187:8084',
        'elevation_host' => 'elevation.feimarobotics.com',
        'tcp_host' => '115.159.44.126',
        'webSocket' => 'ws://115.159.18.187:19502',
        'missionSocket' => 'ws://115.159.18.187:19501',
        'dataRecorderSocket' => 'ws://115.159.18.187:19506',//用于数据记录器
        'log_file' => '/flightDetailLog/',
    ),
    'flightLogProxyConfig' =>array(

        /**********************        目标数据库      ********************/
        "target_database_host" => '10.66.144.109',
        "target_database_user" => 'root',
        "target_database_password" => 'feima@123#',
        "target_database_start_year"=>2015,

        "source_database_host" => '10.66.144.109',
        "source_database_user" => 'root',
        "source_database_password" => 'feima@123#',
        "source_database_name"=>"feima",
        "is_use_souce_db"=>true,
    ),
    'yunpian' => array(
        'yp_sms_host' => 'https://sms.yunpian.com/v2/sms/single_send.json',
        'apikey' => 'a19303378293a0145293af7c1be17e12',
        'receivekey' => '2425365f7b05d87869b5e5aa6ad6e3b0',
        'receive_host' => 'http://182.254.244.64:12084/user/receivesmsreturn',
            //'elevation_host' => 'api.cxywang.com',
    ),
    'Qcloud' => array(
        'AppID' => '1400058333',
        'AppKey' => 'cf3e7c976b6f93a3befd4ca0ef661bf2',
        'receive_host' => 'http://monitor.feimarobotics.com/user/receiveQcloudreturn',
    ),
    'iconCos' => array(
        //需要更改 /app/plugins/Qcloud_cos/Conf.php文件
        'appid' => '10008291',
        'secret_id' => 'AKIDihWyvVcOGZ9h8eb4obh5XTq6WEiPHwzN',
        'secret_key' => 'xGGOYTz1CQ11h8k9YYw3k1j2wCH01LxQ',
        'bucket' => 'feimacloud',
        'path' => '/icon/',
        'url' => "http://feimacloud-10008291.cossh.myqcloud.com"
    ),
    'wechatDev'=>array(
        //测试服务器
//        'appid' => 'wx9cb3d2b8641fb744',
//        'secret'=>'30994b3e648e843298d8070d4091c142'
        //正式服务器
        'appid' => 'wx7483c6b492a0bbd2',
        'secret'=>'2aa1b656f8a2f7db8f60a188568cb436'
    ),
    //正式服务期COS
    'filesCos' =>array(
        'appid' => '10008291',
        'secret_id' => 'AKIDihWyvVcOGZ9h8eb4obh5XTq6WEiPHwzN',
        'secret_key' => 'xGGOYTz1CQ11h8k9YYw3k1j2wCH01LxQ',
        'region' => 'ap-shanghai',
        'bucket' => 'feimacloud',
        'path' => '/uploadfiles/',
        'url' => "http://feimacloud-10008291.cossh.myqcloud.com"
    ),
    //测试服务期COS
//    'filesCos' =>array(
//        'appid' => '1254601578',
//        'secret_id' => 'AKID6yc1B6YHZdT9amETxDE1Zt3zg7IERPgh',
//        'secret_key' => 'sVszrWyCE2d0B8rNfkcT8aoobBUXKsAC',
//        'region' => 'ap-shanghai',
//        'bucket' => 'test',
//        'path' => '/file/',
//        'url' => "http://test-1254601578.cossh.myqcloud.com"
//    ),
    'rsa' => array(
        'private' => '-----BEGIN RSA PRIVATE KEY-----
MIICXwIBAAKBgQDsM3IVXByBV8+nEiEmnMyjlxEWh1i0vHbIKXBcEgVhlRsqui7m
YOlst7oYZzgcPXm1NWwPvFxk3SG1cRcVrvdkUA4B+4cCpytTYL8ldtDF2er3DLI0
p3hOYM5RZbEnihpO9apGe349xUEVvA9ztXB0sNUY77IGjqGGbXXt/TME7QIDAQAB
AoGBAKphKcfym7VJTEatszARJyRSEkd39irZT61vBtfDQBJ15hTaHH6eJYMAvMJh
on3scmCeWoa3TsaLJIenPgmsHlLg+2PdaRJysikuInKtu5pvPO3N3jaPlWruwqwv
A5XkT7xGmI9DSeZkVKfJvRDZHAVn1jkspxzQ7TBT8bHKwnyBAkEA+3Xxl9358UEb
kSWYUO5vbjlPo9lHcysVW3i96Iyt0NyoEb4j2n3E84Zehk8hbboDEoCcZ9uiXAEg
+t8R/gJk/QJBAPB2+7AbiNuqqlo7YD5sqd1togXCXUd4wiqMyOgNJw4cR7BJ+2xk
VKewy1d5BW0VfUMTDdagrNOkquLxzednmrECQQCvCG/8WATMi5dWtyaI3w8tWDM5
R9rWLZ0WKLt4DcRHZ/CNOR7XzUe0g0l0j8wjBqFw1ZkJKfafuCFuvqtVdfE5AkEA
ylmFsItrHla+ZZHjioRMaP3xwuDtN9Chq8au5b7zp4cauHl5Lpw7NKWsZ156t3HG
5+On2H17EdpWxwTt3RWs8QJBAJXeJNzYNe4/posR5TuVLOFouENuleOtUD3MbcD8
HOJfFj9o5XEzyoVgwEXHltPEepYXfHPYMJSAVNozDx/WShE=
-----END RSA PRIVATE KEY-----',
        'public' => '-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDsM3IVXByBV8+nEiEmnMyjlxEW
h1i0vHbIKXBcEgVhlRsqui7mYOlst7oYZzgcPXm1NWwPvFxk3SG1cRcVrvdkUA4B
+4cCpytTYL8ldtDF2er3DLI0p3hOYM5RZbEnihpO9apGe349xUEVvA9ztXB0sNUY
77IGjqGGbXXt/TME7QIDAQAB
-----END PUBLIC KEY-----',
    ),

    //管理员权限菜单
    'default_user_auth_menu' => array(
        "admin" => [
            array(
                "name" => "飞行监控",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_cloud_monitor.png",
                "bigIconUrl" => "/images/main/main_menu_cloud_monitor_big.png",
                "background" => "#50b6f2",
                "children" => array(
                    array("name" => "飞行监控",
                        "menuUrl" => "/monitor/sysMap",),
                    array("name" => "全局统计",
                        "menuUrl" => "/monitor/sysStat",),
                    array("name" => "对比统计",
                        "menuUrl" => "/monitor/sysCompareStat",)
                )
            ),
            array(
                "name" => "用户管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_user_manager.png",
                "bigIconUrl" => "/images/main/main_menu_user_manager_big.png",
                "background" => "#4dde6d",
                "children" => array(
                    array("name" => "新建用户",
                        "menuUrl" => "/user/addUser",),
                    array("name" => "用户列表",
                        "menuUrl" => "/user/list",),
                    array("name" => "登录日志",
                        "menuUrl" => "/user/listLoginRecord",),
                    array("name" => "AOPA",
                        "menuUrl" => "/user/aopa",)
                )
            ),
            array(
                "name" => "设备管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_drone_manager.png",
                "bigIconUrl" => "/images/main/main_menu_drone_manager_big.png",
                "background" => "#0497e7",
                "children" => array(
//                    array("name" => "新建飞机",
//                        "menuUrl" => "/plane/addPlane",),
                    array("name" => "飞机列表",
                        "menuUrl" => "/plane/list",),
//                    array("name" => "新建钥匙",
//                        "menuUrl" => "/plane/addKey",),
                    array("name" => "电池列表",
                        "menuUrl" => "/flightdata/listBattery",),
                    array("name" => "钥匙列表",
                        "menuUrl" => "/plane/listKey",),
                    array("name" => "管家测量版",
                        "menuUrl" => "/plane/listMeasuringKey",),
                    array("name" => "专业版钥匙管理",
                        "menuUrl" => "/version/listDataLicence",),
                    array("name" => "基础配置",
                        "menuUrl" => "/setting/dictList",),
                    array("name" => "解除上限",
                        "menuUrl" => "/plane/keyUnbind",),
                )
            ),
            array(
                "name" => "云端分派",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_task_manager.png",
                "bigIconUrl" => "/images/main/main_menu_task_manager_big.png",
                "background" => "#f59c35",
                "children" => array(
                    array("name" => "创建分派",
                        "menuUrl" => "/task/addDispatchTask",),
                    array("name" => "分派列表",
                        "menuUrl" => "/task/list",),
                    array("name" => "我的任务",
                        "menuUrl" => "/task/listMy",),
                )
            ),
            array(
                "name" => "子系统管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_sub_system.png",
                "bigIconUrl" => "/images/main/main_menu_sub_system_big.png",
                "background" => "#7166b3",
                "children" => array(
                    array("name" => "子系统添加",
                        "menuUrl" => "/subsystem/add",),
                    array("name" => "子系统列表",
                        "menuUrl" => "/subsystem/list",),
                    array("name" => "核心系统分配权限",
                        "menuUrl" => "/subsystem/listAuth",),
                )
            ),
            array(
                "name" => "消息推送",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_push_msg.png",
                "bigIconUrl" => "/images/main/main_menu_push_msg_big.png",
                "background" => "#e19033",
                "children" => array(
                    array("name" => "质保提醒人员",
                        "menuUrl" => "/notification/dispatchEmail",),
                    array("name" => "质保提醒记录",
                        "menuUrl" => "/notification/warrantyRecord",),
                    array("name" => "自定义推送",
                        "menuUrl" => "/notification/ownPushNoti",),
                    array("name" => "全局推送日志",
                        "menuUrl" => "/notification/listPushLog",),
                )
            ),
            array(
                "name" => "禁飞区管理",
                "menuUrl" => "/zone/noflyTask",
                "iconUrl" => "/images/main/main_menu_airspace.png",
                "bigIconUrl" => "/images/main/main_menu_airspace_big.png",
                "background" => "#ca2121",),
            array(
                "name" => "飞行数据",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_flightdata.png",
                "bigIconUrl" => "/images/main/main_menu_flightdata_big.png",
                "background" => "#ff6503",
                "children" => array(
                    array("name" => "数据记录器",
                        "menuUrl" => "/flightdata/listDataRecorder",),
                    array("name" => "飞行项目管理",
                        "menuUrl" => "/flightdata/listFlightProject",),
                    array("name" => "飞行区域管理",
                        "menuUrl" => "/flightdata/listSurveyBlock",),
                    array("name" => "飞行任务管理",
                        "menuUrl" => "/flightdata/listFlightTask",),
                    array("name" => "飞行记录分析",
                        "menuUrl" => "/flightdata/listFlightMission",),
                    array("name" => "起降状态管理",
                        "menuUrl" => "/flightdata/listUasStatus",),
                    array("name" => "POS数据管理",
                        "menuUrl" => "/flightdata/listDataPos",),
                    array("name" => "数据处理项目管理",
                        "menuUrl" => "/flightdata/listDataProject",),
                    array("name" => "相机数据管理",
                        "menuUrl" => "/flightdata/listDataCamera",),
                    array("name" => "影像信息管理",
                        "menuUrl" => "/flightdata/listDataImage",),
                    array("name" => "质检报告管理",
                        "menuUrl" => "/flightdata/listDataReport",),
                )
            ),
            array(
                "name" => "出厂管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_factory.png",
                "bigIconUrl" => "/images/main/main_menu_factory_big.png",
                "background" => "#2fe31b",
                "children" => array(
                    array("name" => "相机检校",
                        "menuUrl" => "/factory/cameraCalibration",),
                    array("name" => "新建相机检校",
                        "menuUrl" => "/factory/addCameraCalibration",),
                    array("name" => "LiDAR检校",
                        "menuUrl" => "/lidar/listLiDAR",),
                    array("name" => "新建LiDAR检校",
                        "menuUrl" => "/lidar/addLiDAR",),
                    array("name" => "出厂履历",
                        "menuUrl" => "/factory/reportFactorySetList",),
                    array("name" => "飞行检查",
                        "menuUrl" => "/factory/reportFlightCheck",),
                    array("name" => "交付记录",
                        "menuUrl" => "/factory/reportDeliveryRecord",),
                    array("name" => "维修记录",
                        "menuUrl" => "/factory/reportFixRecord",),
                )
            ),
            array(
                "name" => "BUG管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_bug.png",
                "bigIconUrl" => "/images/main/main_menu_bug_big.png",
                "background" => "#a42ce8",
                "children" => array(
                    array("name" => "机载日志",
                        "menuUrl" => "/bug/planeBugList",),
                    array("name" => "管家意见反馈",
                        "menuUrl" => "/bug/managerSuggestionList",),
                    array("name" => "crash报告",
                        "menuUrl" => "/bug/reportCrash",),
                )
            ),
            array(
                "name" => "版本管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_version.png",
                "bigIconUrl" => "/images/main/main_menu_version_big.png",
                "background" => "#05ebff",
                "children" => array(
                    array("name" => "视频地面站版本添加",
                        "menuUrl" => "/version/addVideoGSVersion",),
                    array("name" => "视频地面站版本管理",
                        "menuUrl" => "/version/listVideoGSVersion",),
                    array("name" => "版本管理",
                        "menuUrl" => "/version/listAppVersion",),
                    array("name" => "windows差分更新管理",
                        "menuUrl" => "/version/listAppVersionWin",),
                    array("name" => "windows更新程序",
                        "menuUrl" => "/version/listAppUpdateTool",),
                    array("name" => "数据处理软件更新管理",
                        "menuUrl" => "/version/listAppVersionData",),
                    array("name" => "内测固件上传",
                        "menuUrl" => "/firmware/addFirmwareVersion",),
                    array("name" => "内测固件管理",
                        "menuUrl" => "/firmware/listFirmwareVersion",),
                )
            ),
            array(
                "name" => "系统设置",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_system_setting.png",
                "bigIconUrl" => "/images/main/main_menu_system_setting_big.png",
                "background" => "#e7e72f",
                "children" => array(
                    array("name" => "操作日志",
                        "menuUrl" => "/setting/listOperationLog",),
                    array("name" => "问题反馈",
                        "menuUrl" => "/setting/listRequestQuestion",),
                    array("name" => "系统状态",
                        "menuUrl" => "/setting/systemStat",),
                    array("name" => "研发测试",
                        "menuUrl" => "/setting/systemTesting",),
                    array("name" => "版本历史",
                        "menuUrl" => "/version-history.html",),

                )
            ),
        ],
        "subadmin" => [
            array(
                "name" => "飞行监控",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_cloud_monitor.png",
                "bigIconUrl" => "/images/main/main_menu_cloud_monitor_big.png",
                "background" => "#50b6f2",
                "children" => array(
                    array("name" => "飞行监控",
                        "menuUrl" => "/monitor/sysMap",),
                    array("name" => "全局统计",
                        "menuUrl" => "/monitor/sysStat",),
                    array("name" => "对比统计",
                        "menuUrl" => "/monitor/sysCompareStat",)
                )
            ),
            array(
                "name" => "用户管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_user_manager.png",
                "bigIconUrl" => "/images/main/main_menu_user_manager_big.png",
                "background" => "#4dde6d",
                "children" => array(
                    array("name" => "用户添加",
                        "menuUrl" => "/subsystem/addUser",),
                    array("name" => "用户列表",
                        "menuUrl" => "/subsystem/monitorList",),
                    array("name" => "添加记录",
                        "menuUrl" => "/subsystem/addUserLog",)
                )
            ),
            array(
                "name" => "飞机管理",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_drone_manager.png",
                "bigIconUrl" => "/images/main/main_menu_drone_manager_big.png",
                "background" => "#0497e7",
                "children" => array(
                    array("name" => "飞机添加",
                        "menuUrl" => "/subsystem/addPlane",),
                    array("name" => "飞机列表",
                        "menuUrl" => "/subsystem/monitorList4Plane",),
                    array("name" => "添加记录",
                        "menuUrl" => "/subsystem/addPlaneLog",)
                )
            ),
            array(
                "name" => "云端分派",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_task_manager.png",
                "bigIconUrl" => "/images/main/main_menu_task_manager_big.png",
                "background" => "#f59c35",
                "children" => array(
                    array("name" => "创建分派",
                        "menuUrl" => "/task/addDispatchTask",),
                    array("name" => "分派列表",
                        "menuUrl" => "/task/list",),
                    array("name" => "我的任务",
                        "menuUrl" => "/task/listMy",),
                )
            ),

            array(
                "name" => "系统设置",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_system_setting.png",
                "bigIconUrl" => "/images/main/main_menu_system_setting_big.png",
                "background" => "#e7e72f",
                "children" => array(
                    array("name" => "更改系统信息",
                        "menuUrl" => "/subsystem/changeInfo",),
                )

            ),


        ],
        "normal" => [
            array(
                "name" => "飞行监控",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_cloud_monitor.png",
                "bigIconUrl" => "/images/main/main_menu_cloud_monitor_big.png",
                "background" => "#50b6f2",
                "children" => array(
                    array("name" => "飞行监控",
                        "menuUrl" => "/monitor/sysMap",),
                    array("name" => "飞行统计",
                        "menuUrl" => "/monitor/sysStat",)
                )
            ),

            array(
                "name" => "飞机列表",
                "menuUrl" => "/subsystem/monitorList4Plane",
                "iconUrl" => "/images/main/main_menu_drone_manager.png",
                "bigIconUrl" => "/images/main/main_menu_drone_manager_big.png",
                "background" => "#0497e7",
            ),
            array(
                "name" => "我的任务",
                "menuUrl" => "/task/listMy",
                "iconUrl" => "/images/main/main_menu_task_manager.png",
                "bigIconUrl" => "/images/main/main_menu_task_manager_big.png",
                "background" => "#f59c35",
            ),
            array(
                "name" => "系统设置",
                "menuUrl" => "",
                "iconUrl" => "/images/main/main_menu_system_setting.png",
                "bigIconUrl" => "/images/main/main_menu_system_setting_big.png",
                "background" => "#e7e72f",

            ),


        ]
    ),
));